package gyb.rasa.mapper;

import gyb.rasa.entity.Disease;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * @Date 2023/5/18 18:29
 * @Author 郜宇博
 */
@Mapper
public interface DiseaseRepository  extends Neo4jRepository<Disease,Long> {

    @Query("match (a:Disease{name: {name}}) return a")
    Disease getDiseaseByName(String name);

}
